Component({
  options: {
    multipleSlots: true // 在组件定义时的选项中启用多slot支持
  },


  properties: {
    phone: {
      type: String,
      value: ""
    },
    name: {
      type: String,
      value: ""
    }
  },


  data: {
    nameOb:'',
    phoneOb:'',
    card: [{
      header: {
        // bgcolor: "#F7F7F7",
        line: true
      }
    }]
  },
  // observers:{
  //   'name,phone':function(name,phone){
  //     this.setData({
  //       nameOb:name,
  //       phoneOb:phone
  //     })
  //   },
  // },
  methods: {
    setPhoneAndName({
      phone,
      name
    }) {
      var _this = this
      _this.setData({
        phone: phone,
        name: name
      })
    },
    getName(e){
      var name = e.detail.value
      this.setData({
        nameOb:name
      })
    },
    getPhone(e){
      var phone = e.detail.value
      this.setData({
        phoneOb:phone
      })
    }
  }
})